import request from '@/utils/request'
export default {
    list() {
        return request({
            url: '/api/core/goods/index',
            method: 'get'
        })
    },
    removeById(goodsId) {
        return request({
            url: `/api/core/goods/remove/${goodsId}`,
            method: 'delete'
        })
    },
    save(goods) {
        return request({
            url: '/api/core/goods/save',
            method: 'post',
            data: goods
        })
    }
}